<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/page/share/taglib.jsp" %>
<% String adminName = request.getParameter("adminName");%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>营业额查询</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">

    <link rel="stylesheet" type="text/css" href="css/revenue.css">
    <link type="text/css" rel="stylesheet" href="<%=basePath%>/css/smartmenu.css">

    <link rel="stylesheet" type="text/css"
          href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/themes/redmond/jquery-ui.css"/>
    <link rel="stylesheet" type="text/css" href="<%=basePath%>/jslib/TimeCalendar/jquery-calendar.css">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>/jslib/TimeCalendar/styles.css">

    <script type="text/javascript" src="<%=basePath%>/jslib/index/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/index/smartmenu-min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/Menu.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/TimeCalendar/jquery-calendar.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/TimeCalendar/Mapping.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var start = document.getElementById("mytime").getAttribute("value");
            var end = $("#endTime").val();
            var result = $("#result");
            if(start == ""){
                result.css("display","none");
            }
        });
    </script>
</head>

<body>
<%@ include file="/page/share/menu.jsp" %>
<div id="content"> .
<form action="RoomUsed!revenue.action" method="post">
    <table>
        <thead >
        <tr>
            <td>
                请输入查询开始时间：
            </td>
            <td>
                <label>
                    <input type="text" name="startTime" id="beginTime" size="14" class="input">
                </label>
            </td>
            <td align="right">
                请输入查询结束时间：
            </td>
            <td>
                <label>
                    <input type="text" name="endTime" id="endTime" size="14" class="input">
                </label>
                <input type="submit" name="submit" value="确认" id="stb" class="btn">

            </td>
        </tr>

        </thead>
    </table>
</form>
<form method="post" action="RoomUsed!revenue.action" id="result">
    <input type="hidden" name="startTime" value="${startTime}" id="mytime"/>
    <input type="hidden" name="endTime" value="${endTime}"/>
    <table align="center" border="1" cellspacing="0">
        <thead align="center">
        <tr>
            <td>
                订单编号
            </td>
            <td>
                套餐名称
            </td>
            <%-- <td>
                房价
            </td>--%>
            <td>
                唱K开始时间
            </td>
            <td>
                结束唱K时间
            </td>
            <td>
                唱k人数
            </td>
            <td>
                使用房间
            </td>
            <td>
                房间类型
            </td>
            <td>
                附加收费（包括酒水等）
            </td>
            <td>
                总费用
            </td>
            <td>
                收银员
            </td>
        </tr>
        </thead>

        <s:iterator value="roomUses" var="b" status="m">
            <tr>
                <td>
                    <s:property value="#b.booking"/>
                </td>
                <td>
                    <s:property value="#b.meal.mealName"/>
                    (<s:property value="#b.meal.holiday"/>)
                </td>
                    <%--<td>
                        <s:iterator value="roomPrice" var="r" status="n">
                            <s:if test="#m.index == #n.index ">
                                <s:property value="#r"/>
                            </s:if>
                        </s:iterator>
                    </td>--%>
                <td>
                    <s:property value="#b.startTime"/>
                </td>
                <td>
                    <s:property value="#b.endTime"/>
                </td>
                <td>
                    <s:property value="#b.singerNum"/>
                </td>
                <td>
                    <s:property value="#b.room.roomId"/>
                </td>
                <td>
                    <s:property value="#b.room.roomStyle"/>
                </td>
                <td>
                    <s:property value="#b.extraMoney"/>
                </td>
                <td>
                    <s:property value="#b.money"/>
                </td>
                <td>
                    <s:property value="#b.cashier"/>
                </td>
            </tr>
        </s:iterator>
    </table>
    <table align="center" border="1" id="all">
        <tr>
            <td>总营业额</td>
            <td><s:property value="money"/></td>
        </tr>
    </table>
</form>
</div>>


<div id="bottom">
    <ul>
        <li>
            联系我们：
            <a href="mailto:willsonz@qq.com?subject=KTV综合管理系统">willsonz@qq.com</a>
        </li>
    </ul>
    <ul>
        <li>
            ©&nbsp;Made By Cloud Team.
        </li>
    </ul>
</div>

</body>
</html>

